﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneToManyEntityFramework.Model
{
    public class Song : AuditObject
    {
        public int SongId { get; set; }
        public string Title { get; set; }
        [Display(Name = "Date Released")]
        public DateTime DateReleased { get; set; }
        public int AlbumId { get; set; } //tells you what album song is in
        public virtual Album Album { get; set; }
        //Virtual: Can override if you want to, don't have to override
        //Inside DB, Entity uses the virtual property (AlbumId), finds the album for us
        //Fills in the info for the Album, creates relatinoship with ALbum.cs
    }
}